package cn.chencq.moudle.lottery.service;

import cn.chencq.moudle.lottery.entity.LotteryAnalysis;
import cn.chencq.moudle.sys.service.BaseService;

public interface LotteryAnalysisService extends BaseService<LotteryAnalysis> {

	/**
	 * 
	 * @Title: saveOrUpdate
	 * @Description: 插入或更新
	 * @param lotteryAnalysis
	 */
	void saveOrUpdate(LotteryAnalysis lotteryAnalysis);

	LotteryAnalysis groupCount(String lotteryDate, String lotteryType);

	/**
	 * 
	 * @Title: followAlgorithm
	 * @Description: 跟随上一期开奖数据进行投注，计算出一天能够有多少收益
	 * @param lotteryDate
	 * @param lotteryType
	 * @return long
	 */
	double followAlgorithm(String lotteryDate, String lotteryType);
}
